<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<ui:param name="cachetViewBean"
		value="#{commonContentViewBean.allView[3]}" />

	<h:form style="margin:0" id="#{cachetViewBean.id}_cachetForm">
		<p:commandButton
			onclick="btnCachetAction('','#{commonContentViewBean.id}','添加公章','add','org-manage-scene','add-org-cachet');"
			title="添加公章" image="ui-icon-trash" value="添加公章">
		</p:commandButton>
		<br />
		<br />

		<p:fieldset legend="公章管理" toggleable="true" toggleSpeed="500">
			<c:forEach var="cachet"
				items="#{commonContentViewBean.allView[3].cachetAll}" index="0">
				<h:panelGrid width="50%" cellspacing="0" cellpadding="0">
					<table width="100%" border="1" style="" cellspacing="0"
						cellpadding="0">
						<tr align="center">
							<td rowspan="2"><h:graphicImage value="" /></td>
							<td align="left">公章名称：#{cachet.cachetName}</td>
						</tr>
						<tr>
							<td align="center"><p:commandButton
								onclick="btnCachetAction('#{cachet.uuid}','#{commonContentViewBean.id}','公章属性','update','org-manage-scene','edit-org-cachet');"
								title="公章属性" image="ui-icon-trash" value="公章属性">
							</p:commandButton> <p:commandButton title="公章属性" image="ui-icon-trash" value="公章属性"
								action="#{commonContentViewBean.allView[3].delCachet(cachet.uuid)}"
								reRender="#{commonContentViewBean.id}_orgCachet_form">
							</p:commandButton></td>
						</tr>
					</table>
				</h:panelGrid>
			</c:forEach>
		</p:fieldset>
	</h:form>

</ui:composition>